import { createRouter, createWebHashHistory } from 'vue-router';
const routes = [
    { path: "/", redirect: "/login" },
    {
        path: "/layout",
        name: "layout",
        redirect: "/home",
        component: () =>
            import ('../view/layout/index'),
        children: [{
                path: "/home",
                name: "home",
                component: () =>
                    import ('../view/home/index')
            },
            {
                path: "/analysis",
                name: "analysis",
                component: () =>
                    import ('../view/analysis/index'),
            }, {
                path: "/setting",
                name: "setting",
                component: () =>
                    import ('../view/setting/index')
            }
        ]
    }, {
        path: "/login",
        name: "login",
        component: () =>
            import ('../view/login/index')
    }, {
        path: "/monthlyReport",
        name: "monthlyReport",
        component: () =>
            import ('../view/monthlyReport/index')
    }, {
        path: "/recruitAnalysis",
        name: "recruitAnalysis",
        component: () =>
            import ('../view/recruitAnalysis/index')
    }, {
        path: "/humanAnalysis",
        name: "humanAnalysis",
        component: () =>
            import ('../view/humanAnalysis/index')
    }, {
        path: "/talentAnalysis",
        name: "talentAnalysis",
        component: () =>
            import ('../view/talentAnalysis/index')
    }, {

        path: "/about",
        name: "about",
        component: () =>
            import ('../view/about/index')
    },
    {
        path: "/commonSet",
        name: "commonSet",
        component: () =>
            import ('../view/commonSet/index')
    }

]

export const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
